package game.game;

import entity.Position;
import game.engine.network.client.ClientServer;
import game.game.network.cmd.CmdCUpdatePosition;

public class ControllerGameView implements IControllerGame
{
	protected GameModel _model;

	protected ClientServer _clientServer;

	public ControllerGameView(GameModel pModel, ClientServer pClientServer)
	{
		_model = pModel;
		_clientServer = pClientServer;
	}

	public void changePosition( Integer pNewX , Integer pNewY )
	{
		CmdCUpdatePosition cmd = new CmdCUpdatePosition( _model.getContext(), new Position( pNewX, pNewY ), _model.getContext().getUserId() );
		_clientServer.sendCommand( cmd );
	}

	@Override
	public void launchAttack( Integer pNewX , Integer pNewY )
	{
		// TODO Auto-generated method stub
		
	}
}
